{% extends "base.html" %}

{% block title %}登录{% endblock %}

{% block content %}
<div class="container">
	<br/>
	<form action="{% url 'login:login' %}" 
					method="post" class="form-horizontal">
	{% csrf_token %}
	<fieldset>
		<legend><h1>登录</h1></legend>
		{{ login_form.media }}
		{{ login_form.as_p }}
	</fieldset>

	<br/>
	<button type="submit" class="btn btn-primary">登录</button>
	</form>
	<br/>
	<div class="errorlist">
		<p class="text-danger">{{ errmsg }}</p>
	</div>
	<a href="{% url 'login:register' %}">没有帐号？注册</a>
	<br/>
	<!-- p class="help-block">Tips：尽量一次性填完哦，另外不要乱填，例如114514这类······</p> -->	
</div>
{% endblock %}
